<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2022/11/23
  Time: 10:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java"  isELIgnored="false"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>考试管理</title>
    <base href="${pageContext.request.scheme }://${pageContext.request.serverName }:${pageContext.request.serverPort }${pageContext.request.contextPath }/ "/>
    <!-- Bootstrap -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="https://cdn.jsdelivr.cn/npm/jquery@1.12.4/dist/jquery.min.js" integrity="sha384-nvAa0+6Qg9clwYCGGPpDQLVpLNn0fRaROjHqs13t4Ggj3Ez50XnGQqc/r8MhnRDZ" crossorigin="anonymous"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

</head>
<body>
    <h1>修改考试题集</h1>
    <form action="quetionSet.do?m=update" method="post">
        <input type="hidden" name="id" value="${quetionSet.id}">
        <p>标题：<input type="text" placeholder="请输入标题" name="title" value="${quetionSet.title}"></p>
        <p>描述：<input type="text" placeholder="请输入描述" name="description" value="${quetionSet.description}"></p>
        <p>分数：<input type="text" placeholder="请输入分数" name="point" value="${quetionSet.point}"></p>
        <p>秒数：<input type="text" placeholder="请输入秒数" name="time" value="${quetionSet.time}"></p>
        <p>课程：
            <select name="subjectId">
                <option >请输入课程</option>
                <c:forEach var="subject" items="${subjects}">
                    <option value="${subject.id}" ${quetionSet.subjectId==subject.id?'selected':''}>${subject.subjectName}</option>
                </c:forEach>
            </select>
        </p>
        <p><input type="submit" value="提交"></p>
    </form>
</body>
</html>
